

import 'package:flutter/material.dart';
import 'package:qr_code_scanner/qr_code_scanner.dart';
import 'package:qr_flutter/qr_flutter.dart';

class QrUtility {

  static Widget create(String data, {
    int versions=QrVersions.auto,
    double size=320,
    bool gapLess=false,
    QrEyeStyle? qrEyeStyle,
    Color backgroundColor=Colors.transparent,
    ImageProvider? embeddedImage,
    QrDataModuleStyle? qrDataModuleStyle,
    QrEmbeddedImageStyle? embeddedImageStyle
  }){
   return QrImageView(
       data: data,
       version: versions,
       size: size,
       gapless: gapLess,
       backgroundColor: backgroundColor,
       eyeStyle: qrEyeStyle ?? const QrEyeStyle(color: Colors.black, eyeShape:QrEyeShape.square),
       dataModuleStyle: qrDataModuleStyle ?? const QrDataModuleStyle(dataModuleShape: QrDataModuleShape.square, color: Colors.black,),
       embeddedImage:embeddedImage,
       embeddedImageStyle:embeddedImageStyle
    );
  }


}

